import { EntityObjectFactory } from './../entityObjectFactory';
var EntityObject = EntityObjectFactory.GetEntityObjectType();
import { Category } from './category';
import { Unit } from './unit';
import { Modifier } from './modifier';

export class Inventory extends EntityObject<Inventory>{
    constructor(ctx?) { super(ctx); }
    id: string = null;
    categories: Category[];
    //商品名称
    name: string = null;
    //图片
    pic: string = null;
    //商品分类
    categoryIds;
    price: number = null;
    //商品代码
    code: string = null;
    //规格
    model: string = null;
    //材质
    material: string = null;
    //单位
    unit: Unit = null;
    unitId: string = null;
    //颜色
    color: string = null;
    //产地
    madein: string = null;
    //描述
    description: string = null;
    //检索码
    searchCode: string = null;
    //上架下架
    onsale: boolean = null;
    //会员价格定义：json对象
    memberPrices: any = null;
    //商品类型
    type: string = null;
    //商品选项
    modifiers: Modifier[];
    store: any = null;
    /**
     * 成本价
     * 
     * @type {number}
     * @memberOf Inventory
     */
    costPrice: number = null;

    toString() { return "Inventory"; }
}